<p id="notice"><%= notice %></p>

<p>
  <strong><%= t(:title) %>:</strong>
  <%= @post.title %>
</p>

<p>
  <strong><%= t(:content) %>:</strong>
</p>
<%= markdown(@post.context) %>
<%= image_tag @post.picture.url if @post.picture? %>
<%= image_tag @post.image if !@post.image.nil? %>
<% if user_login_in? %>
    <section class="micropost_form">
      <%= render 'shared/relationship_form' %>
    </section>
<% end %>

<span>评论：</span>
<%= render 'shared/feed' %>
<br/>

<% if current_user?(@post.user) %>
    <%= link_to 'Edit', edit_post_path(@post) %>
<% end %>
|
<%= link_to 'Back', posts_path %>